package com.itheima.writer;

import java.io.FileWriter;
import java.io.IOException;

public class FileDemo {

    public static void main(String[] args) throws IOException {

        FileWriter fileWriter = new FileWriter("day11\\d.txt");

        for (int i = 0; i <10 ; i++){
            fileWriter.write("java"+i);
            fileWriter.write("\r\n");
            fileWriter.flush();
        }

        fileWriter.close();
    }
}
